package com.ruoyi.canteen.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 点餐用户对象 canteen_user
 * 
 * @author zhangw
 * @date 2021-09-19
 */
public class CanteenUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户自增id */
    private Long id;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @JsonIgnore
    private String openid;

    /** 用户昵称 */
    @Excel(name = "用户昵称")
    private String nickname;

    /** 用户工号 */
    @JsonIgnore
    @Excel(name = "用户工号")
    private String userCode;

    /** $column.columnComment */
    @JsonIgnore
    @Excel(name = "用户工号")
    private Long unifyUid;

    /** $column.columnComment */
    @Excel(name = "用户工号")
    private String email;

    /** $column.columnComment */
    @Excel(name = "用户工号")
    private String password;

    /** $column.columnComment */
    @Excel(name = "用户工号")
    private String mobile;

    /** $column.columnComment */
    @Excel(name = "用户工号")
    private String wxProfile;


    private String authCode;

    /** 用户类型:普通用户-1，职工VIP用户-2 */
    @Excel(name = "用户类型:普通用户-1，职工VIP用户-2")
    private Long userType;

    /** 用户类型:普通用户-1，职工VIP用户-2 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "用户类型:普通用户-1，职工VIP用户-2", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deleteTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setOpenid(String openid) 
    {
        this.openid = openid;
    }

    public String getOpenid() 
    {
        return openid;
    }
    public void setNickname(String nickname) 
    {
        this.nickname = nickname;
    }

    public String getNickname() 
    {
        return nickname;
    }
    public void setUserCode(String userCode) 
    {
        this.userCode = userCode;
    }

    public String getUserCode() 
    {
        return userCode;
    }
    public void setUnifyUid(Long unifyUid) 
    {
        this.unifyUid = unifyUid;
    }

    public Long getUnifyUid() 
    {
        return unifyUid;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setMobile(String mobile) 
    {
        this.mobile = mobile;
    }

    public String getMobile() 
    {
        return mobile;
    }
    public void setWxProfile(String wxProfile) 
    {
        this.wxProfile = wxProfile;
    }

    public String getWxProfile() 
    {
        return wxProfile;
    }
    public void setUserType(Long userType) 
    {
        this.userType = userType;
    }

    public Long getUserType() 
    {
        return userType;
    }
    public void setDeleteTime(Date deleteTime) 
    {
        this.deleteTime = deleteTime;
    }

    public Date getDeleteTime() 
    {
        return deleteTime;
    }


    public String getAuthCode() {
        return authCode;
    }

    public void setAuthCode(String authCode) {
        this.authCode = authCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("openid", getOpenid())
            .append("nickname", getNickname())
            .append("userCode", getUserCode())
            .append("unifyUid", getUnifyUid())
            .append("email", getEmail())
            .append("password", getPassword())
            .append("mobile", getMobile())
            .append("wxProfile", getWxProfile())
            .append("userType", getUserType())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("deleteTime", getDeleteTime())
            .toString();
    }
}
